package com.his.bean;

import java.io.Serializable;

/**
 * 提现付款记录，微信企业付款记录
 * @TableName dzm_his_mchpay
 */
public class DzmHisMchpay implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 所属医院id
     */
    private Integer hospitalId;

    /**
     * 提现申请id
     */
    private Integer cashOutId;

    /**
     * 操作ip
     */
    private String ip;

    /**
     * 商户订单号
     */
    private String partnerTradeNo;

    /**
     * 支付平台交易订单
     */
    private String paymentNo;

    /**
     * 添加时间
     */
    private Integer addtime;

    /**
     * 状态：0未处理，1成功，2失败，3异常
     */
    private Boolean status;

    /**
     * 备注
     */
    private String memo;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 所属医院id
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 所属医院id
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 提现申请id
     */
    public Integer getCashOutId() {
        return cashOutId;
    }

    /**
     * 提现申请id
     */
    public void setCashOutId(Integer cashOutId) {
        this.cashOutId = cashOutId;
    }

    /**
     * 操作ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * 操作ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 商户订单号
     */
    public String getPartnerTradeNo() {
        return partnerTradeNo;
    }

    /**
     * 商户订单号
     */
    public void setPartnerTradeNo(String partnerTradeNo) {
        this.partnerTradeNo = partnerTradeNo;
    }

    /**
     * 支付平台交易订单
     */
    public String getPaymentNo() {
        return paymentNo;
    }

    /**
     * 支付平台交易订单
     */
    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }

    /**
     * 添加时间
     */
    public Integer getAddtime() {
        return addtime;
    }

    /**
     * 添加时间
     */
    public void setAddtime(Integer addtime) {
        this.addtime = addtime;
    }

    /**
     * 状态：0未处理，1成功，2失败，3异常
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 状态：0未处理，1成功，2失败，3异常
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * 备注
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 备注
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisMchpay other = (DzmHisMchpay) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getCashOutId() == null ? other.getCashOutId() == null : this.getCashOutId().equals(other.getCashOutId()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getPartnerTradeNo() == null ? other.getPartnerTradeNo() == null : this.getPartnerTradeNo().equals(other.getPartnerTradeNo()))
            && (this.getPaymentNo() == null ? other.getPaymentNo() == null : this.getPaymentNo().equals(other.getPaymentNo()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getCashOutId() == null) ? 0 : getCashOutId().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getPartnerTradeNo() == null) ? 0 : getPartnerTradeNo().hashCode());
        result = prime * result + ((getPaymentNo() == null) ? 0 : getPaymentNo().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", cashOutId=").append(cashOutId);
        sb.append(", ip=").append(ip);
        sb.append(", partnerTradeNo=").append(partnerTradeNo);
        sb.append(", paymentNo=").append(paymentNo);
        sb.append(", addtime=").append(addtime);
        sb.append(", status=").append(status);
        sb.append(", memo=").append(memo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}